﻿<html>
<head>
	<style type="text/css">
		td, p, span{font-family:"Consolas"; font-size: 14px;}
		table{border-collapse: collapse;}
		table td{border: 1px solid #f0f0f0; padding: 4px;}
		.Title{font-size: 18px; color:#293955; font-weight:bold;}
		.NoBorder td{border: 0px;}
		.Field{color:#293955; font-weight:bold;}
		.Text{color:#747474;}
	</style>
	<script type="text/tiscript">
		function ffbot_Help(Help){
			$(#HelpTitle).html = Help.Caption
			$(#HelpDefine).html = Help.Define
			$(#HelpDescribe).html = Help.Describe
			$(#HelpReturn).html = "[" + Help.RetType + "] " + Help.Return
			if (Help.Param.length == 0) {
				$(#HelpArgs).text = "无"
			} else {
				var html = "<table>"
				for(var i = 0,len = Help.Param.length; i < len; i++){
					if (Help.Param[i].Optional) {
						html = html + "<tr><td>[可选]</td>"
					} else {
						html = html + "<tr><td>[必选]</td>"
					}
					html = html + "<td>" + Help.Param[i].Caption + "</td>"
					html = html + "<td>" + Help.Param[i].DataType + "</td>"
					html = html + "<td>" + Help.Param[i].Describe + "</td></tr>"
				}
				$(#HelpArgs).html = html + "</table>"
			}
		}
		function self.ready() {
			// 加载后执行的内容
			ffbot_Help(objCurNode.Help)
		}
	</script>
</head>
<body>
	<p class="Title" id="HelpTitle"></p>
	<table class="NoBorder">
		<tr>
			<td class="Field">语法：</td>
			<td class="Text" id="HelpDefine"></td>
		</tr>
		<tr>
			<td class="Field">功能：</td>
			<td class="Text" id="HelpDescribe"></td>
		</tr>
		<tr>
			<td class="Field">参数：</td>
			<td class="Text" id="HelpArgs"></td>
		</tr>
		<tr>
			<td class="Field">返回值：</td>
			<td class="Text" id="HelpReturn"></td>
		</tr>
	</table>
</body>
</html>